---
title: "execute · RUAL Documentation"
description: "Executes the given funcion and waits for it to be executed."
canonical: https://docs.rual.nl/block-types/globals,function execution/function_custom_execute
language: en
---

# execute

This block is part of the [`function execution`](https://docs.rual.nl/block-types/function%20execution) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

### Function Selection Required

This block requires you to choose a custom function to execute when triggered. You must manually select the function you want to use using the function selector modal. To access the modal, click the white button on the block.

Executes the given funcion and waits for it to be executed.

- flow `flow`

| `custom function` |
| --- |

[execute](https://docs.rual.nl/block-types/function execution/function_custom_execute) calls the custom function you picked on the block and waits for it to finish. It sits inline in the flow: a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the caller, execute runs the callee, and the flow continues to [return](https://docs.rual.nl/block-types/function execution/function_return) afterwards.

![Studio canvas example for the execute block: calling another function mid-flow.](https://docs.rual.nl/canvas-examples/function_custom_execute.png)

### Commonly used with

One of the most-used blocks across production blueprints. It is most often wired together with:

- [branch](https://docs.rual.nl/block-types/flow/branch): wired in both directions with this block.

- [create](https://docs.rual.nl/block-types/globals/trigger_custom_function): feeds into this block. Creates a new function that can be executed using the given name.

- [get fields](https://docs.rual.nl/block-types/object/object_field_getter_multiple): feeds into this block. Gets the selected fields from the given object.

- [value](https://docs.rual.nl/block-types/value/value_default): feeds into this block. Simply returns the provided value.

- [get guid](https://docs.rual.nl/block-types/users/user_get_guid): feeds into this block. Returns the guid (field: _meta.guid) of the given user.

- [get document](https://docs.rual.nl/block-types/storage/function_get_document): feeds into this block. get a specific document based on the given GUID.

### Used in these guides

These documentation pages use or explain this block:

- [Best Practices](https://docs.rual.nl/blueprints/best-practices)

- [Tips & tricks](https://docs.rual.nl/blueprints/tips-and-tricks)

- [Build Your First API](https://docs.rual.nl/cluster/api-quickstart)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
